<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@include file="/WEB-INF/page/share/taglib.jsp"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>${sessionScope.user.nickname }，欢迎来到52橙子网，这是您的个人信息中心</title>
<link rel="stylesheet" href="/shop/css/index/index.css" media="all" type="text/css"/>
<link rel="stylesheet" href="/shop/css/vip.css" type="text/css">
<link rel="stylesheet" href="/shop/css/shopping/myoder.css" media="all" type="text/css"/>
<script type="text/javascript" language="javascript">
function topage(page){
	var form = document.forms[0];
	form.page.value=page;
	form.submit();
}
</script>
</head>
<body>
<html:form action="/front/user/manage" method="post">
<input type = "hidden" name="method" value="mychengzi"></input>
<html:hidden property="page"/>
<div class="container">
    <jsp:include page="/WEB-INF/page/share/Head.jsp"></jsp:include>
		 <div class="middle">
        	<div class="nav">
            	<div class="item">
                	<div class="item_l">●</div>
                    <div class="item_m"><a href="/shop">去首页</a></div>
                    <div class="item_r"></div>
                </div>
                <div class="item_line"></div>
                <div class="item">
                	<div class="item_l">●</div>
                    <div class="item_m"><a href ="/shop/shopping/cart.do">我的购物车</a></div>
                    <div class="item_r"></div>
                </div>
                <div class="item_line"></div>
                <div class="item">
                	<div class="item_l">●</div>
                    <div class="item_m"><a href = "/shop/front/user/manage.do?method=mychengzi">我已下的订单</a></div>
                    <div class="item_r"></div>
                </div>
                <div class="item_line"></div>
                <div class="item">
                	<div class="item_l">●</div>
                    <div class="item_m"><a href="/shop/front/user/manage.do?method=show">我的个人信息</a></div>
                    <div class="item_r"></div>
                </div>
            </div>
            
            <div class="oder">
            	<div class="oder_header">
                	<div class="oder_title">我的订单<%@ include file="/WEB-INF/page/share/fenye.jsp" %></div>
                </div>
                <div class="oder_content">
                	<div class="oder_hor">
                    	<div class="oder1">订单商品</div>
                        <div class="oder2">收货人</div>
                        <div class="oder3">订单金额</div>
                        <div class="oder4">下单时间</div>
                        <div class="oder5">订单状态</div>
                        <div class="oder6">操作</div>
                    </div>
                    <c:forEach items="${requestScope.pageView.records}" var="order" >
                    <div class="oder_num"><font>订单号:${order.ordercode }</font><font>所属商场:${order.parent.name }</font></div>
	                    <c:forEach items="${order.items}" var="orderitem" varStatus="loop">
		                    <div class="oder_hor1">
		                    	<div class="oder1">
		                        	<div class="oder1_img"><img src="/shop${orderitem.image140FullPath}" alt="${orderitem.productName }" width="50" height="50"/></div>
		                            <div style="color:#87c1c7;"><a href='/shop/html/product/${orderitem.typeid }/${orderitem.productid}.html' target="_blank">${orderitem.productName }</a></div>
		                        </div>
		                        <div class="oder2">${order.orderDeliverInfo.recipients }</div>
		                        <div class="oder3">${order.productTotalPrice }</div>
		                        <div class="oder4">${order.createDate}</div>
		                        <div class="oder5">
		                        	<c:if test="${order.state =='CANCEL' }">已取消</c:if><c:if test="${order.state =='WAITCONFIRM' }">待审核</c:if><c:if test="${order.state =='WAITPAYMENT' }">等待付款</c:if><c:if test="${order.state =='ADMEASUREPRODUCT' }">正在配货</c:if><c:if test="${order.state =='WAITDELIVER' }">等待发货</c:if><c:if test="${order.state =='DELIVERED' }">已发货</c:if><c:if test="${order.state =='RECEIVED' }">已收货</c:if>
		                        </div>
		                        <div class="oder6"><div style="color:#87c1c7;"><a href="<html:rewrite action='/front/user/manage' />?method=showOrder&orderid=${order.orderId}">查看详细</a></div><div><a href="#">删除</a></div></div>
		                    </div>
	                    </c:forEach>
                    </c:forEach>
                   <%@ include file="/WEB-INF/page/share/fenye.jsp" %>
                </div>
            </div>
        </div><!-- end middle -->
	</div>
	<div class="footer"><img src="/shop/image/footer_img.png"/></div><!--end footer-->
	</div>
	</html:form>
</body>
</html>